<template>
  <div class="box">
    <img src="../../assets//images/error_images/404.png" alt="" />
    <div class="btn">
      <h1 style="margin-bottom: 20px">
        你的权限不够无法访问到该页面，或者该页面不存在，请点击按钮跳转到首页
      </h1>
      <el-button type="primary" size="large" @click="goHome"
        >点击我去首页</el-button
      >
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
let $router = useRouter();
const goHome = () => {
  $router.push("/");
};
</script>
<style scoped lang="scss">
.box {
  display: flex;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  img {
    width: 800px;
    height: 400px;
  }
}
</style>
